const {ref} = Vue;
import Student from "../Student";
const template = `<div id="app">
                    <el-button @click="inc">{{count}}</el-button>
                    <Student name="张三"></Student>
                  </div>`;

const setup = function () {
    const count = ref('100');
    function inc() {
        count.value++;
    }
    return {
        count,
        inc
    }
}

export default {
    components: {
        Student
    },
    template,
    setup
}
